<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input[type=checkbox] {
            margin-right: 5px;
            cursor: pointer;
            font-size: 14px;
            width: 15px;
            height: 12px;
            position: relative;
        }

        input[type=checkbox]:after {
            position: absolute;
            width: 10px;
            height: 15px;
            top: 0;
            content: " ";
            border: 1px solid black;
            background-color: #fff;
            color: #fff;

            display: inline-block;
            visibility: visible;
            padding: 0px 3px;
            border-radius: 3px;
        }
        input[type=checkbox]:checked:after {
            border-style: hidden;
            content: "✓";
            font-size: 12px;
            background-color: #ff0000;
            color: #fff;
        }
        input[type=radio] {
            margin-right: 5px;
            cursor: pointer;
            font-size: 14px;
            width: 15px;
            height: 12px;
            position: relative;
        }

        input[type=radio]:after {
            position: absolute;
            width: 10px;
            height: 15px;
            top: 0;
            content: " ";
            border: 1px solid black;
            background-color: #fff;
            color: #fff;
            display: inline-block;
            visibility: visible;
            padding: 0px 3px;
            border-radius: 50%;
        }

        input[type=radio]:checked::after {
            border-style: hidden;
            content: "✓";
            font-size: 12px;
            background-color: #ff0000;
            color: #fff;
        }
    </style>
</head>

<body>
    <form action="javascript:;">
        <input type="radio" name="" id="">
        <input type="radio" name="" id="">
        <input type="radio" name="" id="">
        <input type="checkbox" name="" id="">
        <input type="checkbox">
    </form>
</body>

</html>